﻿#include "CTaskInfo.h"

CTaskInfo::CTaskInfo()
{
	m_nLatestRecord = 0;
	m_sGuid="";
	m_nTaskType = 0;
	m_nPeriodType = 0;
	m_sScheduledTime="";
	m_sTaskGuid="";
	m_sTaskName="";
	m_sTemplateFixedID="";
	//wxy++20240430
	m_nContIrTemp = 0;//是否开启连续红外测温(0:关闭 1:打开)
	m_nContSoundDet = 0;//是否开启连续噪声检测(0:关闭 1:打开)
	m_sTaskActTime = "";
}

CTaskInfo::~CTaskInfo()
{
}

void CTaskInfo::copyData(CTaskInfo* pTaskInfo)
{
	if (nullptr == pTaskInfo)
		return;

	pTaskInfo->m_nLatestRecord = m_nLatestRecord;
	pTaskInfo->m_sGuid = m_sGuid;
	pTaskInfo->m_nTaskType = m_nTaskType;
	pTaskInfo->m_sScheduledTime = m_sScheduledTime;
	pTaskInfo->m_sTaskGuid = m_sTaskGuid;
	pTaskInfo->m_sTaskName = m_sTaskName;
	pTaskInfo->m_sTemplateFixedID = m_sTemplateFixedID;
	pTaskInfo->m_nPeriodType = m_nPeriodType;
	//wxy++20240430
	pTaskInfo->m_nContIrTemp = m_nContIrTemp;
	pTaskInfo->m_nContSoundDet = m_nContSoundDet;
}
